package com.ruanjian.api.service.impl;

import com.ruanjian.api.bean.UserEarnings;
import com.ruanjian.api.mapper.UserEarningsMapper;
import com.ruanjian.api.service.IUserEarningsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2022-11-23 10:51
 */
@Service
public class UserEarningsServiceImpl implements IUserEarningsService {

    @Autowired
    UserEarningsMapper userEarningsMapper;

    @Override
    public int insertSelective(UserEarnings record) {
        return userEarningsMapper.insertSelective(record);
    }

    @Override
    public List<UserEarnings> listUserEarningsByUserId(Long userId) {
        return userEarningsMapper.listUserEarningsByUserId(userId);
    }

    @Override
    public UserEarnings listUserEarningsSelective(UserEarnings userEarnings) {
        return userEarningsMapper.listUserEarningsSelective(userEarnings);
    }

    @Override
    public List<UserEarnings> listUserEarningsByUserIdAndStageId(UserEarnings userEarnings) {
        return userEarningsMapper.listUserEarningsByUserIdAndStageId(userEarnings);
    }
}
